package com.xxxx.crm;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@MapperScan("com.xxxx.crm.dao")
public class Starter{

    public static void main(String[] args) {
        SpringApplication.run(Starter.class);
    }

}
//@SpringBootApplication
//@MapperScan("com.xxxx.crm.dao")
//@EnableScheduling // 启用定时任务
//public class Starter extends SpringBootServletInitializer {
//
//    public static void main(String[] args) {
//        SpringApplication.run(Starter.class);
//    }
//
//    /* 设置Web项目的启动入口 */
//    @Override
//    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
//        return builder.sources(Starter.class);
//    }
//}
